<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menu.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateEgresosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <p:growl/>
            <p:outputLabel value="Los campos con * son Obligatorios"/>
            <p:separator/>
            <h:form>
                <h:panelGrid columns="6">
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_fechaegreso}" for="fechaegreso" />
                    <p:calendar id="fechaegreso" value="#{egresosController.selected.fechaegreso}" locale="de" navigator="true" pattern="MM-dd-yyyy" required="true" requiredMessage="#{bundle.CreateEgresosRequiredMessage_fechaegreso}">
                    </p:calendar>
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_valor}" for="valor" />
                    <p:inputText id="valor" value="#{egresosController.selected.valor}" title="#{bundle.CreateEgresosTitle_valor}" />
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_observaciones}" for="observaciones" />
                    <p:inputText id="observaciones" value="#{egresosController.selected.observaciones}" title="#{bundle.CreateEgresosTitle_observaciones}" />
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_numerodoc}" for="numerodoc" />
                    <p:selectOneMenu id="numerodoc" value="#{egresosController.selected.numerodoc}"  >
                        <f:selectItems value="#{usuariosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_formapago}" for="formapago" />
                    <p:selectOneMenu id="formapago" value="#{egresosController.selected.formapago}" required="true" requiredMessage="#{bundle.CreateEgresosRequiredMessage_formapago}">
                        <f:selectItems value="#{formaspagoController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <p:outputLabel value="#{bundle.CreateEgresosLabel_concepto}" for="concepto" />
                    <p:selectOneMenu id="concepto" value="#{egresosController.selected.concepto}" required="true" requiredMessage="#{bundle.CreateEgresosRequiredMessage_concepto}">
                        <f:selectItems value="#{conceptosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
                <p:spacer/>
                <h:panelGrid columns="2">
                    <h:commandButton action="#{egresosController.create}" value="#{bundle.CreateEgresosSaveLink}" />
               
                    <h:commandButton action="#{egresosController.prepareList}" value="#{bundle.CreateEgresosShowAllLink}" immediate="true"/>
                
                </h:panelGrid>
                
            </h:form>
        </ui:define>
    </ui:composition>

</html>
